import React,{ Component } from 'react'
import { Route } from 'react-router-dom'
import './index.scss'
import Nav from './components/nav'
import Hot from './components/Hot'
import Coming from './components/Coming'
// import request from '../../utils/request'

export default class Home extends Component {

    async componentDidMount(){
        // fetch('/ajax/movieOnInfoList?token=')
        // .then(data  => data.json())
        // .then(res => {
        //     console.log('res',res)

        // })
        // .catch(err => console.log(err))
        //  
    } 

    render(){
        return(
            <div className="container">
                <Nav/>
                <Route path="/home/hot" component = { Hot }/>
                <Route path="/home/coming" component = { Coming }/>
            </div>
        )
    }
}